﻿/**
 *  version v1.0
 *
 *
 */

using System;
using System.Collections.Generic;

namespace Study01
{


    class Program
    {
        private int a = 100;
        private const int b = 1; //常量

        public static int sendMoney(int money)
        {
            for (int i = 0; i < money; i++)
            {
                Console.WriteLine("sending money!"+money);
            }
            return money;
        }
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            sendMoney(55);
            //1byte（位）=8bit（比特）
            //b = 2;//常量不可改
            bool YorN = true;
            sbyte sb1 = -128; // 8位有符号整数类型；-128~-127 ；长度(2^8-1)
            sbyte sb2 = 127;
            byte by = 9; //8位无符号整数类型；0～255
            short s1 = -32768; //16位有符号整数类型 -32768～32767 ；长度(2^16 - 1 =65536-1=65535)
            ushort s2 = 65535; //16位无符号整数类型 0～65535
            int j1 = -2147483648; //32位有符号整数类型 -2147483648 ~ 2147483647
            uint j2 = 4294967295; //32位无符号整数类型 0~2^32 -1 = 0~4294967296 -1=0~4294967295
            long l1 = -123L; //64位有符号
            ulong l2 = 1L; //64位无符号

            float f1 = 2147483647.1f; //32位单精度浮点型
            double d1 = -99.99D; //64位双精度浮点型

            char a1 = 'd';
            string st = "sssssssss是生生世世生生世世生生世世生生世世生生世世生生世世生生世世生生世世生生世世生生世世s";

            Decimal d2 = new Decimal(999.88);
            //数组不可改变长度
            int[] array = { };
            bool[] boolArray = new bool[3];
            boolArray = new bool[4];
            //集合可以改变长度数组
            List<int> list = new List<int>();
            list.Add(1);

            foreach (int i in list)
            {
                Console.WriteLine(i);
            }

            Console.WriteLine("+++++++++++++++++++");

            //字典---相当于JAVA中的Map----python中的dict
            Dictionary<String, Object> map = new Dictionary<string, object>();
            map.Add("参考", new Player("jason", 29));
            map.Add("参考2", new Player("jason2", 292));

            Console.WriteLine(map["参考2"].ToString());




            //for (int j = 0;j < 5;j++)
            //{







            //while (true) { 
            //    //int i = 65;
            //    switch (input)
            //{
            //    case 100:
            //        Console.WriteLine("100");
            //        break;

            //    case 65:
            //        Console.WriteLine("65");
            //        goto A;
            //break;
            //Console.WriteLine("是否推出y/n？");
            //String input2= Console.ReadLine();//输入
            //if (input2 == "y")
            //{
            //    Console.WriteLine("再见👋");//换行输出
            //    break;//外层要有循环
            //}
            //else
            //{
            //    //ff();
            //    goto A;
            //}
            // break;
            // continue;

            //default:
            //    break;
            // }


        }



    }

}


